Feature: Article Comments
features/article_comments.feature:2Scenario: A visitor can view comments on Mosaic
Given I am a visitor
features/step_definitions/user_steps.rb:11
When I visit the Mosaic page "/articles/srep13100"
features/step_definitions/navigation_steps.rb:23
And I click on "Comments"
features/step_definitions/navigation_steps.rb:44
Then I will see "Comments"
features/step_definitions/page_steps.rb:1
features/article_comments.feature:8Scenario: A logged in user can view comments on Mosaic
Given I am a logged in user
features/step_definitions/user_steps.rb:5
When I visit the Mosaic page "/articles/srep13100"
features/step_definitions/navigation_steps.rb:23
And I click on "Comments"
features/step_definitions/navigation_steps.rb:44
Then I will see "Comments"
features/step_definitions/page_steps.rb:1
Feature: Article DOIs
As a user
I want to use the new doi finder endpoint
features/article_doi.feature:5Scenario: Doi for a Maestro journal article
When I visit the Mosaic page "/articles/doi:10.1038/nplants.2014.2"
features/step_definitions/navigation_steps.rb:23
Then I will be redirected to "/articles/nplants20142"
features/step_definitions/navigation_steps.rb:74
And I will see "Degradation of potent Rubisco inhibitor by selective sugar phosphatase"
features/step_definitions/page_steps.rb:1
features/article_doi.feature:10Scenario: Doi for a Foxtrot jornal article
When I visit the Mosaic page "/articles/doi:10.1038/nature13776"
features/step_definitions/navigation_steps.rb:23
Then I will be redirected to "/nature/journal/v513/n7519/full/nature13776.html"
features/step_definitions/navigation_steps.rb:74
And I will see "A faster Rubisco with potential to increase photosynthesis in crops"
features/step_definitions/page_steps.rb:1
Feature: Subscription Article figures navigation
I want to see the full size images of a subscription article
features/article_figures.feature:4Scenario: A user can see the full size figure on Mosaic
Given I am a logged in user
features/step_definitions/user_steps.rb:5
When I visit the Mosaic page "/articles/nplants201580"
features/step_definitions/navigation_steps.rb:23
And I click on "Full size image"
features/step_definitions/navigation_steps.rb:44
Then I will be redirected to "/articles/nplants201580/figures/1"
features/step_definitions/navigation_steps.rb:74
And I will see the full size image "nplants201580-f1.jpg"
features/step_definitions/page_steps.rb:21
features/article_figures.feature:11Scenario: A user can see the full size figure on Classic
Given I am a logged in user
features/step_definitions/user_steps.rb:5
When I visit the Classic page "/articles/micronano20151"
features/step_definitions/navigation_steps.rb:23
And I click on "Full size image"
features/step_definitions/navigation_steps.rb:44
Then I will be redirected to "/articles/micronano20151/figures/1"
features/step_definitions/navigation_steps.rb:74
And I will see the full size image "micronano20151-f1.jpg"
features/step_definitions/page_steps.rb:21
features/article_figures.feature:18Scenario: A user can see the figures index page on Classic
Given I am a logged in user
features/step_definitions/user_steps.rb:5
When I visit the Classic page "/articles/micronano20151/figures/1"
features/step_definitions/navigation_steps.rb:23
And I click on "Figures index"
features/step_definitions/navigation_steps.rb:44
Then I will be redirected to "/articles/micronano20151/fig_tab"
features/step_definitions/navigation_steps.rb:74
And I will see "Figures index"
features/step_definitions/page_steps.rb:1
features/article_figures.feature:25Scenario: A user cannot see the figures index page on Mosaic
Given I am a logged in user
features/step_definitions/user_steps.rb:5
When I visit the Classic page "/articles/nplants201580/fig_tab"
features/step_definitions/navigation_steps.rb:23
Then I will be redirected to "/articles/nplants201580"
features/step_definitions/navigation_steps.rb:74
features/article_figures.feature:30Scenario: A visitor will be redirect to the article page if browsing the full size figure url
Given I am a visitor
features/step_definitions/user_steps.rb:11
When I visit the Mosaic page "/articles/nplants201580/figures/1"
features/step_definitions/navigation_steps.rb:23
Then I will get a 401
features/step_definitions/navigation_steps.rb:70
Then I will be redirected to "/articles/nplants201580"
features/step_definitions/navigation_steps.rb:74
Feature: Metadata
features/article_metadata.feature:2Scenario: A robot can fetch article related metadata on Mosaic
Given I am a robot
features/step_definitions/user_steps.rb:13
When I visit the Mosaic page "/articles/nplants201580"
features/step_definitions/navigation_steps.rb:23
Then I will see "Webtrends" metadata in the page source
features/step_definitions/page_steps.rb:30
And I will see "Google Scholar" metadata in the page source
features/step_definitions/page_steps.rb:30
And I will see "Dublin Core" metadata in the page source
features/step_definitions/page_steps.rb:30
And I will see "Open Graph" metadata in the page source
features/step_definitions/page_steps.rb:30
features/article_metadata.feature:10Scenario: A robot will not find article related metadata on Mosaic not-article pages
Given I am a robot
features/step_definitions/user_steps.rb:13
When I visit the Mosaic page "/nplants"
features/step_definitions/navigation_steps.rb:23
Then I will NOT see "Webtrends" metadata in the page source
features/step_definitions/page_steps.rb:30
And I will NOT see "Google Scholar" metadata in the page source
features/step_definitions/page_steps.rb:30
And I will NOT see "Dublin Core" metadata in the page source
features/step_definitions/page_steps.rb:30
And I will NOT see "Open Graph" metadata in the page source
features/step_definitions/page_steps.rb:30
features/article_metadata.feature:18Scenario: A robot will find global Webtrends metadata on the Mosaic home page
Given I am a robot
features/step_definitions/user_steps.rb:13
When I visit the Mosaic page "/nplants"
features/step_definitions/navigation_steps.rb:23
Then I will see see global "Webtrends" metadata in the page source
features/step_definitions/page_steps.rb:25
features/article_metadata.feature:23Scenario: A robot can fetch article related metadata on Classic
Given I am a robot
features/step_definitions/user_steps.rb:13
When I visit the Classic page "/articles/micronano20151"
features/step_definitions/navigation_steps.rb:23
Then I will see "Webtrends" metadata in the page source
features/step_definitions/page_steps.rb:30
And I will see "Google Scholar" metadata in the page source
features/step_definitions/page_steps.rb:30
And I will see "Dublin Core" metadata in the page source
features/step_definitions/page_steps.rb:30
And I will see "Open Graph" metadata in the page source
features/step_definitions/page_steps.rb:30
features/article_metadata.feature:31Scenario: A robot will not find article related metadata on Classic not-article pages
Given I am a robot
features/step_definitions/user_steps.rb:13
When I visit the Classic page "/mtm"
features/step_definitions/navigation_steps.rb:23
Then I will NOT see "Webtrends" metadata in the page source
features/step_definitions/page_steps.rb:30
And I will NOT see "Google Scholar" metadata in the page source
features/step_definitions/page_steps.rb:30
And I will NOT see "Dublin Core" metadata in the page source
features/step_definitions/page_steps.rb:30
And I will NOT see "Open Graph" metadata in the page source
features/step_definitions/page_steps.rb:30
features/article_metadata.feature:39Scenario: A robot will find global Webtrends metadata on the Classic home page
Given I am a robot
features/step_definitions/user_steps.rb:13
When I visit the Classic page "/mtm"
features/step_definitions/navigation_steps.rb:23
Then I will see see global "Webtrends" metadata in the page source
features/step_definitions/page_steps.rb:25
Feature: Subscription Articles paywall
As a Visitor
I will see the paywall for non OA articles when not logged in
features/article_paywall.feature:5Scenario: A visitor can see the paywall on Mosaic
When I visit the Mosaic page "/articles/nplants201580"
features/step_definitions/navigation_steps.rb:23
Then I will see "Subscribe to Nature Plants for full access"
features/step_definitions/page_steps.rb:1
And I will see the "Subscribe" button
features/step_definitions/page_steps.rb:5
And I will see "$59"
features/step_definitions/page_steps.rb:1
features/article_paywall.feature:11Scenario: A visitor can see the Login Link to Athens on Mosaic
When I visit the Mosaic page "/articles/nplants201580"
features/step_definitions/navigation_steps.rb:23
Then I will see the "Login via Athens" link
features/step_definitions/page_steps.rb:5
Feature: Article Pdf download
I want to download a pdf
features/article_pdf.feature:4Scenario: A user can download the Article pdf on Mosaic
Given I am a logged in user
features/step_definitions/user_steps.rb:5
When I visit the Mosaic page "/articles/nplants201580"
features/step_definitions/navigation_steps.rb:23
And I click on "PDF"
features/step_definitions/navigation_steps.rb:44
And I click on "Download as PDF"
features/step_definitions/navigation_steps.rb:44
Then I will download the pdf file "nplants201580.pdf"
features/step_definitions/navigation_steps.rb:58
features/article_pdf.feature:11Scenario: A visitor cannot download the Article pdf on Mosaic
Given I am a visitor
features/step_definitions/user_steps.rb:11
When I visit the Mosaic page "/articles/nplants201580"
features/step_definitions/navigation_steps.rb:23
Then I will NOT see the "PDF" link
features/step_definitions/page_steps.rb:5
features/article_pdf.feature:16Scenario: A visitor cannot use the full url to download the Article pdf
Given I am a visitor
features/step_definitions/user_steps.rb:11
When I visit the Mosaic page "/articles/nplants201580.pdf"
features/step_definitions/navigation_steps.rb:23
Then I will get a 401
features/step_definitions/navigation_steps.rb:70
And I will see the "Subscribe" button
features/step_definitions/page_steps.rb:5
features/article_pdf.feature:22Scenario: A logged in user can download the Article pdf on Classic
Given I am a logged in user
features/step_definitions/user_steps.rb:5
When I visit the Classic page "/articles/micronano20151"
features/step_definitions/navigation_steps.rb:23
And I click on "PDF"
features/step_definitions/navigation_steps.rb:44
And I click on "Download as PDF"
features/step_definitions/navigation_steps.rb:44
Then I will download the pdf file "micronano20151.pdf"
features/step_definitions/navigation_steps.rb:58
expected: "application/pdf"
got: "text/html; charset=utf-8"
(compared using ==)
(RSpec::Expectations::ExpectationNotMetError)./features/step_definitions/navigation_steps.rb:62:in `/^I will download the (.*) file "([^"]*)"$/'
features/article_pdf.feature:27:in `Then I will download the pdf file "micronano20151.pdf"'
./features/step_definitions/navigation_steps.rb:62:in `/^I will download the (.*) file "([^"]*)"$/'
features/article_pdf.feature:27:in `Then I will download the pdf file "micronano20151.pdf"'
60 expect(page.status_code).to eq 200
61
62 expect(headers['content-type']).to eq %Q(application/#{type})
63
64 # is an attachment or is displaying it online
65
Screenshot of the error

Feature: Articles RIS files
As a Visitor
I can download the article citations
features/article_ris.feature:5Scenario: A visitor can download the article RIS file on Mosaic
When I visit the Mosaic page "/articles/nplants20142"
features/step_definitions/navigation_steps.rb:23
And I click on "Download Citation"
features/step_definitions/navigation_steps.rb:44
Then I will download a file with content "L3 - 10.1038/nplants.2014.2"
features/step_definitions/navigation_steps.rb:52
features/article_ris.feature:10Scenario: A visitor can download the article RIS file on Classic
When I visit the Classic page "/articles/micronano20151"
features/step_definitions/navigation_steps.rb:23
And I click on "Citation"
features/step_definitions/navigation_steps.rb:44
Then I will download a file with content "L3 - 10.1038/micronano.2015.1"
features/step_definitions/navigation_steps.rb:52
features/article_ris.feature:15Scenario: A visitor can download the article references RIS file on Mosaic
When I visit the Mosaic page "/articles/nplants20142"
features/step_definitions/navigation_steps.rb:23
And I click on "Download references"
features/step_definitions/navigation_steps.rb:44
Then I will download a file with content "TI - Rubisco: structure, regulatory interactions"
features/step_definitions/navigation_steps.rb:52
features/article_ris.feature:20Scenario: A visitor can download the article references RIS file on Classic
When I visit the Classic page "/articles/micronano20151"
features/step_definitions/navigation_steps.rb:23
And I click on "Download references"
features/step_definitions/navigation_steps.rb:44
Then I will download a file with content "TI - Nuclear transfer in farm animal species"
features/step_definitions/navigation_steps.rb:52
Feature: The journal RSS feed
features/article_rss.feature:3Scenario: A visitor wants to subscribe to the RSS feed for a Mosaic Journal
Given I am a visitor
features/step_definitions/user_steps.rb:11
When I visit the Mosaic page "/nplants"
features/step_definitions/navigation_steps.rb:23
And I click on "RSS Feed"
features/step_definitions/navigation_steps.rb:44
Then I will see "Nature Plants - nature.com science feeds"
features/step_definitions/page_steps.rb:1
And I will see "syndicated content powered by FeedBurner"
features/step_definitions/page_steps.rb:1
features/article_rss.feature:10Scenario: A visitor wants to subscribe to the RSS feed for a Classic Journal
Given I am a visitor
features/step_definitions/user_steps.rb:11
When I visit the Classic page "/mtm"
features/step_definitions/navigation_steps.rb:23
And I click on "RSS"
features/step_definitions/navigation_steps.rb:44
Then I will see "Molecular Therapy - Methods & Clinical Development - nature.com science feeds"
features/step_definitions/page_steps.rb:1
And I will see "syndicated content powered by FeedBurner"
features/step_definitions/page_steps.rb:1
features/article_rss.feature:17Scenario: A visitor wants to subscribe to the RSS feed for a Classic Journal from the article page
Given I am a visitor
features/step_definitions/user_steps.rb:11
When I visit the Classic page "/articles/micronano20151"
features/step_definitions/navigation_steps.rb:23
And I click on "RSS"
features/step_definitions/navigation_steps.rb:44
Then I will see "Microsystems & Nanoengineering - nature.com technology"
features/step_definitions/page_steps.rb:1
And I will see "syndicated content powered by FeedBurner"
features/step_definitions/page_steps.rb:1
Feature: The Journal sitemap
features/article_sitemap.feature:2Scenario: A Robot can fetch the Journal sitemp.xml
Given I am a robot
features/step_definitions/user_steps.rb:13
When I visit the Mosaic page "/nplants/sitemap.xml"
features/step_definitions/navigation_steps.rb:23
Then I will download a file with content "www.nature.com/nplants"
features/step_definitions/navigation_steps.rb:52
Feature: Article Supplementary info files
features/article_supplementary_files.feature:2Scenario: A visitor can download a supplementary info file on Mosaic
Given I am a visitor
features/step_definitions/user_steps.rb:11
When I visit the Mosaic page "/articles/nplants20142"
features/step_definitions/navigation_steps.rb:23
And I click on "Supplementary Information"
features/step_definitions/navigation_steps.rb:44
Then I will download the pdf file "nplants20142-s1.pdf"
features/step_definitions/navigation_steps.rb:58
expected: "application/pdf"
got: "text/html; charset=utf-8"
(compared using ==)
(RSpec::Expectations::ExpectationNotMetError)./features/step_definitions/navigation_steps.rb:62:in `/^I will download the (.*) file "([^"]*)"$/'
features/article_supplementary_files.feature:6:in `Then I will download the pdf file "nplants20142-s1.pdf"'
./features/step_definitions/navigation_steps.rb:62:in `/^I will download the (.*) file "([^"]*)"$/'
features/article_supplementary_files.feature:6:in `Then I will download the pdf file "nplants20142-s1.pdf"'
60 expect(page.status_code).to eq 200
61
62 expect(headers['content-type']).to eq %Q(application/#{type})
63
64 # is an attachment or is displaying it online
65
Screenshot of the error

features/article_supplementary_files.feature:8Scenario: A visitor can download a supplementary info file on Classic
Given I am a visitor
features/step_definitions/user_steps.rb:11
When I visit the Classic page "/articles/micronano20151"
features/step_definitions/navigation_steps.rb:23
And I click on "Supplementary information"
features/step_definitions/navigation_steps.rb:44
Then I will download the pdf file "micronano20151-s1.pdf"
features/step_definitions/navigation_steps.rb:58
expected: "application/pdf"
got: "text/html; charset=utf-8"
(compared using ==)
(RSpec::Expectations::ExpectationNotMetError)./features/step_definitions/navigation_steps.rb:62:in `/^I will download the (.*) file "([^"]*)"$/'
features/article_supplementary_files.feature:12:in `Then I will download the pdf file "micronano20151-s1.pdf"'
./features/step_definitions/navigation_steps.rb:62:in `/^I will download the (.*) file "([^"]*)"$/'
features/article_supplementary_files.feature:12:in `Then I will download the pdf file "micronano20151-s1.pdf"'
60 expect(page.status_code).to eq 200
61
62 expect(headers['content-type']).to eq %Q(application/#{type})
63
64 # is an attachment or is displaying it online
65
Screenshot of the error

Feature: Article associated links
features/associated_links.feature:2Scenario: A visitor can see an article associated link in the Mosaic reading companion
Given I am a visitor
features/step_definitions/user_steps.rb:11
When I visit the Mosaic page "/articles/nplants20142"
features/step_definitions/navigation_steps.rb:23
Then I will see "News and Views | 08 January 2015"
features/step_definitions/page_steps.rb:1
And I will see the "Photosynthesis: Rubisco rescue" link
features/step_definitions/page_steps.rb:5
And I will see "Rebekka M. Wachter & J. Nathan Henderson"
features/step_definitions/page_steps.rb:1
features/associated_links.feature:18Scenario: A visitor can see an Erratum link in Mosaic
Given I am a visitor
features/step_definitions/user_steps.rb:11
When I visit the Mosaic page "/articles/nplants20142"
features/step_definitions/navigation_steps.rb:23
And I will see the "Erratum (14 January 2015)" link
features/step_definitions/page_steps.rb:5
Feature: Foxtrot redirects
As a visitor
I want to be redirected to the Foxtrot article when using the new url style /articles/:article_id
features/foxtrot_redirects.feature:5Scenario: redirect a foxtrot article to a foxtrot style url
When I visit the Mosaic page "/articles/nature13776"
features/step_definitions/navigation_steps.rb:23
Then I will be redirected to "/nature/journal/v513/n7519/full/nature13776.html"
features/step_definitions/navigation_steps.rb:74
And I will see "A faster Rubisco with potential to increase photosynthesis in crops"
features/step_definitions/page_steps.rb:1
Feature: Journal Latest Content
features/journal_latest_content.feature:3Scenario: A user can see the latest research page
Given I am a visitor
features/step_definitions/user_steps.rb:11
When I visit the Mosaic page "/nplants/research"
features/step_definitions/navigation_steps.rb:23
Then I will see "Latest Research"
features/step_definitions/page_steps.rb:1
features/journal_latest_content.feature:8Scenario: A user can see the latest reviews page
Given I am a visitor
features/step_definitions/user_steps.rb:11
When I visit the Mosaic page "/nplants/reviews"
features/step_definitions/navigation_steps.rb:23
Then I will see "Latest Reviews"
features/step_definitions/page_steps.rb:1
features/journal_latest_content.feature:13Scenario: A user can see the news and comment page
Given I am a visitor
features/step_definitions/user_steps.rb:11
When I visit the Mosaic page "/nplants/news-and-comment"
features/step_definitions/navigation_steps.rb:23
Then I will see "News & Comment"
features/step_definitions/page_steps.rb:1
Feature: Journal Menu
As a user
I want to use the menu options in the journal homepage
features/journal_menu.feature:5Scenario: A visitor can use the Current Issue menu option from a Maestro journal homepage
When I visit the Mosaic page "/nplants"
features/step_definitions/navigation_steps.rb:23
And I click on "Menu"
features/step_definitions/navigation_steps.rb:44
And I click on "Current Issue"
features/step_definitions/navigation_steps.rb:44
Then I will see "Volume"
features/step_definitions/page_steps.rb:1
And I will see "Issue"
features/step_definitions/page_steps.rb:1
features/journal_menu.feature:12Scenario: A visitor can use the News and Comment menu option from a Maestro journal homepage
When I visit the Mosaic page "/nplants"
features/step_definitions/navigation_steps.rb:23
And I click on "Menu"
features/step_definitions/navigation_steps.rb:44
And I click on "News and Comment"
features/step_definitions/navigation_steps.rb:44
Then I will see "News & Comment"
features/step_definitions/page_steps.rb:1
features/journal_menu.feature:18Scenario: A visitor can use the Research menu option from a Maestro journal homepage
When I visit the Mosaic page "/nplants"
features/step_definitions/navigation_steps.rb:23
And I click on "Menu"
features/step_definitions/navigation_steps.rb:44
And I click on "Research"
features/step_definitions/navigation_steps.rb:44
Then I will see "Latest Research"
features/step_definitions/page_steps.rb:1
features/journal_menu.feature:24Scenario: A visitor can use the Browse Articles menu option from a Maestro journal homepage
When I visit the Mosaic page "/nplants"
features/step_definitions/navigation_steps.rb:23
And I click on "Menu"
features/step_definitions/navigation_steps.rb:44
And I click on "Browse Articles"
features/step_definitions/navigation_steps.rb:44
Then I will see "Browse articles"
features/step_definitions/page_steps.rb:1
features/journal_menu.feature:30Scenario: A visitor can use the About the Journal menu option from a Maestro journal homepage
When I visit the Mosaic page "/nplants"
features/step_definitions/navigation_steps.rb:23
And I click on "Menu"
features/step_definitions/navigation_steps.rb:44
And I click on "About the Journal"
features/step_definitions/navigation_steps.rb:44
Then I will see "About the Journal"
features/step_definitions/page_steps.rb:1
features/journal_menu.feature:36Scenario: A visitor can use the Contact menu option from a Maestro journal homepage
When I visit the Mosaic page "/nplants"
features/step_definitions/navigation_steps.rb:23
And I click on "Menu"
features/step_definitions/navigation_steps.rb:44
And I click on "Contact"
features/step_definitions/navigation_steps.rb:44
Then I will see "Contact"
features/step_definitions/page_steps.rb:1
features/journal_menu.feature:42Scenario: A visitor can use the Nature menu option from a Maestro journal homepage
When I visit the Mosaic page "/nplants"
features/step_definitions/navigation_steps.rb:23
And I click on "Menu"
features/step_definitions/navigation_steps.rb:44
And I click on "Nature"
features/step_definitions/navigation_steps.rb:44
Then I will see "Nature"
features/step_definitions/page_steps.rb:1
features/journal_menu.feature:48Scenario: A visitor can use the Nature Communications menu option from a Maestro journal homepage
When I visit the Mosaic page "/nplants"
features/step_definitions/navigation_steps.rb:23
And I click on "Menu"
features/step_definitions/navigation_steps.rb:44
And I click on "Nature Communications"
features/step_definitions/navigation_steps.rb:44
Then I will see "Nature Communications"
features/step_definitions/page_steps.rb:1
Feature: Proofing articles
As a proof user
I want to see an article
features/proofing_articles.feature:5Scenario: A user can proof a Mosaic article
Given I am a logged in user
features/step_definitions/user_steps.rb:5
When I visit the Mosaic page "/articles/nplants201580" in proof mode
features/step_definitions/navigation_steps.rb:28
Then I will see "Grassland productivity limited by multiple nutrients"
features/step_definitions/page_steps.rb:1
features/proofing_articles.feature:10Scenario: A user can proof a Classic article
Given I am a logged in user
features/step_definitions/user_steps.rb:5
When I visit the Classic page "/articles/micronano20151" in proof mode
features/step_definitions/navigation_steps.rb:28
Then I will see "On-chip 3D rotation of oocyte based on a vibration-induced local whirling flow"
features/step_definitions/page_steps.rb:1
Feature: Readcube Article
features/readcube.feature:2Scenario: A user can read the Article on ReadCube
Given I am a logged in user
features/step_definitions/user_steps.rb:5
When I visit the Mosaic page "/articles/nplants20142"
features/step_definitions/navigation_steps.rb:23
And I click on "PDF"
features/step_definitions/navigation_steps.rb:44
And I click on "View interactive PDF in ReadCube"
features/step_definitions/navigation_steps.rb:44
Then I will be redirected to "www.readcube.com" domain
features/step_definitions/navigation_steps.rb:74
And I will see the "View on Nature" link
features/step_definitions/page_steps.rb:5